/*
 * @Descripttion: Voice recognition module package
 * @version: 0.1
 * @Author: zhaomangang
 * @Date: 2024-06-25 16:29:30
 * @LastEditors: zhaomangang
 * @LastEditTime: 2024-06-25 18:39:44
 * @todo:
 *  sig: speech_awake
 *       
 */


#ifndef __SPEECH_RECOGNITION_H__
#define __SPEECH_RECOGNITION_H__

#include <QObject>
#include <iostream>
#include "audio_capture.h"
#include "recognition_baidu.h"

class SpeechRecognition : public QObject
{
    Q_OBJECT
private:
    std::shared_ptr<AudioCapture> audio_capture_;
    std::shared_ptr<RecognitionBaiDu> recognition_baidu_;
    

signals:
    void recognitionResult(const QString result);

public:
    SpeechRecognition(QObject* parent = nullptr);
    ~SpeechRecognition();

    void startRecognition();
    void stopRecognition();

};














#endif // __SPEECH_RECOGNITION_H__
